
// 下拉树
function treeTwoInit(){
	$('#treeTwo .tree-one ul').hide();
	$('#treeTwo .tree-one div.tree-children div .tree-arrow').unbind().click(function() {
		$('.tree-one div.tree-children div').removeClass("current");
		//$(this).parent().addClass('current');
		$(this).parent().parent('div.tree-children').nextAll('ul').slideToggle(300);
		if ($(this).parent().find('img').attr('src') == basePath+'/static/org/img/icon_select_up.png') {
			$(this).parent().find('img').attr('src', basePath+'/static/org/img/icon_select_down.png');
			//$(this).parent().siblings().find('img').attr('src', 'img/icon_select_up.png')
			$('.tree-one div.tree-children div').removeClass("current");
		} else {
			$(this).parent().find('img').attr('src', basePath+'/static/org/img/icon_select_up.png');
		}
	})
	$('#treeTwo .add-mess-child .tree-con-box').hide();
	$('#treeTwo .add-mess-form-tree').unbind().click(function(){
		$(this).next().slideToggle();
	})
}